﻿ @model List<HotDealD2.Models.DealDaDuyet>
@{
    Layout = "../../Shared/AdminLayout.cshtml";
}
@{
    ViewBag.Title = "IndexInsertDeal";
    ViewBag.Username = "Admin";
}
	<div class= "body-content" >

		<div class ="right-cont">
		
		
	
	   <div id="contented">
        <div class="bg_account_T">
        Quản Lý Deal
    </div>
     @using (Html.BeginForm())
     {  
	   <div class="box-profile">
       <fieldset>
         <legend>Danh Sách Deal Đã Duyệt</legend>
       
       <div class="box-add">
  
       </div>
       <br /><br />
       <div class="middle-box">
	   <table  >
           <tr>
             <td style="vertical-align: bottom;">
					<span class="style1">Page <b>1</b> / 1			| Display
						<select name="pagination"><option value="20">20</option><option value="50" selected="selected">50</option><option value="100">100</option><option value="300">300</option>
						</select>
						/ 3 result(s)
					</span>
					<span style="float: right;">
                    <div class="field">	  
                   
                    
						<input type="submit" id="submitFilterButton_customer" name="submitFilter" value="Filter"  />
                    
                        </div>
					</span>
					<span class="clear"></span>
				</td>
    
           </tr>
           <tr>
             <td height="74">
			 <table  class="table">
               <tr >
               		<th width="41" height="55"><div class="center">
				  <input type="checkbox"/>	</div>			  </th>
					
					<th width="79"><div class="center"><span class="style1">
					Tên Deal					</span></div></th>
					<th width="96"><div class="center"><span class="style1">
					Doanh Nghiệp					</span></div></th>
					
					
					<th width="130"><div class="center"><span class="style1">
					Loại Hình Giao Dịch			</span></div></th>
                    <th width="96"><div class="center"><span class="style1">
					Loại Deal			</span></div></th>
                    <th width="96"><div class="center"><span class="style1">
					Điều Khiển				</span></div></th>
               </tr>
               <tr style="height:35px;">
                 <td ><div class="center"><span class="style1">--</span></div></td>
                
                  <td >
				 <div class="center">
                   @Html.TextBox("searchString",null,new { @class = "f-input", style="width:70px;"}) 
					
				</div>
                </td>
                   <td ><div class="center"><span class="style1">--</span></div></td>
            
                  <td ><div class="center"><span class="style1">--</span></div></td>
				
                  <td >
				 <div class="center">
					<span class="style1">--</span>
				</div>
				 </td>
                  <td >
				 <div class="center">
					<span class="style1">--</span>
				</div>
				 </td>
        
                 
                 
                </tr>
                @foreach (var item in Model)
                {
               <tr>
                 <td width="41" height="55"><div class="center">
				  <input type="checkbox"/>	</div>			  </td>
					
					<td width="79"><div class="center"><span class="style1">
					@Html.DisplayFor(m => item.TenDeal)</span></div></td>
					<td width="96"><div class="center"><span class="style1">
					@Html.DisplayFor(m => item.ThanhVien.NguoiDung.HoTen)	</span></div></td>
					
					<td width="96"><div class="center"><span class="style1">
					@Html.DisplayFor(m => item.LoaiHinhGiaoDich.TenLoaiHinh)	</span></div></td>
                    <td width="96"><div class="center"><span class="style1">
					@Html.DisplayFor(m => item.LoaiDeal.TenLoaiDeal)	</span></div></td>
                    <td width="96">
		
                    <div class ="center">
                    <a href="@Url.Action("InsertDeal", new { tenDeal = item.TenDeal })"><img src="../../../Content/AdminSite/images/button/add.gif" title ="Thêm Deal" /></a>
                   
                    </div>
               
                    </td>
                </tr>
                }
               
             </table></td>
		   </tr>
		   </table>
        </div>
          </fieldset>
	   
		</div>
     }
		</div>
		</div>
	</div>